package top.infopub.mgr.la.service;

import java.util.List;

import top.infopub.generic.GenericService;
import top.infopub.mgr.la.domain.CarryLawcaseDomain;
import top.infopub.mgr.la.vo.CarryLawcaseVo;
import top.infopub.model.la.CarryLawcase;
import top.infopub.model.la.CarryLawcaseAtt;

import com.github.pagehelper.Page;

public interface CarryLawcaseService extends GenericService<CarryLawcase, String> {

    /**
     * 根据条件查询分页记录
     * @param page
     * @param carryLawcaseVo
     * @return 
     * @see
     */
    Page<CarryLawcaseDomain> selectByDomainWhere(Page<CarryLawcaseDomain> page,
                                                 CarryLawcaseVo carryLawcaseVo);

    /**
     * 根据条件查询-我审批的分页记录
     * @param page
     * @param carryLawcaseVo
     * @return 
     * @see
     */
    Page<CarryLawcaseDomain> selectMyCheckByDomainWhere(Page<CarryLawcaseDomain> page,
                                                        CarryLawcaseVo carryLawcaseVo);

    /**
     * 新增记录
     * @param carryLawcase
     * @param carryLawcaseAtts 
     * @see
     */
    void saveCarryLawcase(CarryLawcaseVo carryLawcase, List<CarryLawcaseAtt> carryLawcaseAtts);

    /**
     * 根据id查询记录详情
     * @param id 主键id
     * @return 
     * @see
     */
    CarryLawcaseVo queryById(String id);
    
    /**
     * 查询可调解的执行案件记录
     * @return 
     * @see
     */
    List<CarryLawcase> selectUsablePeace();
    
}